import request from '@/utils/request'

// 查询测试明细列表
export function listTestStep(testId,query) {
  return request({
    url: '/user/project/testStep/list/'+testId,
    method: 'get',
    params: query
  })
}
// 查询测试明细列表
export function listAllTestStep(testId,query) {
  return request({
    url: '/user/project/testStep/listAll/'+testId,
    method: 'get',
    params: query
  })
}

// 查询测试明细详细
export function getTestStep(stepId) {
  return request({
    url: '/user/project/testStep/' + stepId,
    method: 'get'
  })
}

// 新增测试明细
export function addTestStep(testId,data) {
  return request({
    url: '/user/project/testStep/'+testId,
    method: 'post',
    data: data
  })
}

// 修改测试明细
export function updateTestStep(testId,data) {
  return request({
    url: '/user/project/testStep/'+testId,
    method: 'put',
    data: data
  })
}

// 批量修改测试明细
export function batchEditUpdateTestStep(data) {
  return request({
    url: '/user/project/testStep/batchEdit',
    method: 'put',
    data: data
  })
}

// 删除测试明细
export function delTestStep(stepId) {
  return request({
    url: '/project/testStep/' + stepId,
    method: 'delete'
  })
}
